import { createStyleImportPlugin } from 'vite-plugin-style-import';

export function styleImportPlugin() {
  const plugin = createStyleImportPlugin({
    libs: [
      {
        libraryName: 'ant-design-vue',
        esModule: true,
        resolveStyle: (name) => {
          return `ant-design-vue/es/${name}/style/index`;
        },
      },
    ],
  });
  return plugin;
}
